package CtrLayer;

import java.util.ArrayList;

import DataLayer.Model.Produkt;

public interface IFProduktCtr
{
	// get all products with a specific visibility status
	public ArrayList<Produkt> getAllProdukt(boolean synlig);

	// get a product based on type and visibility status
	public ArrayList<Produkt> searchProduktViaType(String type, boolean synlig);

	// get a product based on model and visibility status
	public ArrayList<Produkt> searchProduktViaModel(String model, boolean synlig);

	// get a product based on product id
	public Produkt getProdukt(int produktId);

	// create new product
	public void createProdukt(
								String type, String model, boolean directOnly,
								double pris, boolean synlig) throws Exception;

	// update product
	public int updateProdukt(Produkt p);

	// remove product
	public int deleteProdukt(Produkt p);
}
